package net.minecraft.src;

import java.util.Random;

public class mod_16Sulfur extends BaseMod
{
	public static Block oreSulfur;
	public static Item powderSulfur;
	public mod_16Sulfur()
	{
		oreSulfur = (new Block(112, ModLoader.addOverride("/terrain.png", "/Periodic/sulfurOre.png"), Material.rock)).setHardness(2.0F).setStepSound(Block.soundStoneFootstep).setBlockName("oreSulfur");
		powderSulfur = new Item(1500).setItemName("powderSulfur");
		powderSulfur.iconIndex = ModLoader.addOverride("/gui/items.png", "/Periodic/powderSulfur.png");
	}

	public void GenerateSurface(World world, Random random, int chunkX, int chunkZ)
	{
		for(int i = 0; i < 40; i++)
		{
			int x = chunkX + random.nextInt(16);
			int y = random.nextInt(40);
			int z = chunkZ + random.nextInt(16);
			new WorldGenMinable(oreSulfur.blockID, 4).generate(world, rand, x, y, z);
		}
		for(int i = 0; i < 20; i++)
		{
			int x = chunkX + random.nextInt(16);
			int y = random.nextInt(20);
			int z = chunkZ + random.nextInt(16);
			new WorldGenMinable(oreSulfur.blockID, 8).generate(world, rand, x, y, z);
		}
	}

	public String Version()
	{
		return "1.0 for MC 1.5_01";
	}
}
